package alexattar.gdxtest;

import java.util.Locale;

public enum FrontGun implements Item {
	PULSE_CANNON("Pulse-Cannon", 500, Shot.BULLET),
	MISSILE_LAUNCHER("Missile Launcher", 1000, Shot.MISSILE);
	
	private final String name;
	private final int price;
	private final Shot shot;
	
	private FrontGun(String name, int price, Shot shot) {
		this.name = name;
		this.price = price;
		this.shot = shot;
	}
	
	@Override
	public String getName() {
		return name;
	}

	@Override
	public String getSimpleName() {
		return "front-gun-" + name().replaceAll("_", "-").toLowerCase();
	}

	@Override
	public int getPrice() {
		return price;
	}
	
	public Shot getShot() {
		return shot;
	}
	
	@Override
	public String toString() {
		return String.format(Locale.CANADA, "%s (%s) - Damage: %s", name, "$" + price, shot.getDamage());
	}

}
